import './assets/main.css'

import { createApp } from 'vue'
// 引入状态库
import { createPinia } from 'pinia'
import App from './App.vue'
// 引入路由
import router from './router'
//引入懒加载
import { lazyPlugin } from '@/directives/index'
//组件全局化
import { componentPlugin } from "@/components/index"
//注册用户登录持久化
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)
app.mount('#app')



